package cn.iune.backcenter.author.sysinfo;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

@Entity
@Table(name="SysInfo"/*,uniqueConstraints={@UniqueConstraint(columnNames={"systemCode"})}*/)
public class SysInfo {
	
//	public static String SYSTEM_IM = "IM";//库存管理子系统
//	public static String SYSTEM_AR = "AR";//应收子系统
//	public static String SYSTEM_AP = "AP";//应付子系统

	@Id
	@Column(length=32)
	private String fID;
	@Column(length=10)
	private String systemCode;
	@Column(length=20)
	private String systemName;
	@Column(length=256)
	private String systemFullID;
	@Column(length=128)
	private String systemFullCode;
	@Column(length=128)
	private String systemFullName;
	@Column(length=6)
	private String shortName;
	
	@Column(length=10)
	private String systemKind;//应用app;功能fun;页面pag;动作act
	@Column(length=1024)
	private String absoluteUrl;
	@Column(length=256)
	private String systemDescribe;
	@Column(precision=38,scale=6)
	private BigDecimal itemPrice;

	private int nodeLevel = 0;
	@Column(length=32)
	private String nodeKind;
	@Column(length=50)
	private String sortNo;
	@Column(length=32)
	private String fParent;
	
	@Column(length=10)
	private String status;
	
	
	
	
	@Column(length=32)
	private String appId;//在服务器中注册的应用ID
	@Column(length=256)
	private String appName;//在服务器中注册的应用名称
	
	@Column(length=1)
	private String sDisplay = "Y";//是否在导航菜单中显示
	
	
	
	@Version
	private int version;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}

	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getSystemCode() {
		return systemCode;
	}
	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}
	public String getSystemName() {
		return systemName;
	}
	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}
	public String getSystemDescribe() {
		return systemDescribe;
	}
	public void setSystemDescribe(String systemDescribe) {
		this.systemDescribe = systemDescribe;
	}
	public BigDecimal getItemPrice() {
		return itemPrice;
	}
	public void setItemPrice(BigDecimal itemPrice) {
		this.itemPrice = itemPrice;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getSystemFullID() {
		return systemFullID;
	}
	public void setSystemFullID(String systemFullID) {
		this.systemFullID = systemFullID;
	}
	public String getSystemFullCode() {
		return systemFullCode;
	}
	public void setSystemFullCode(String systemFullCode) {
		this.systemFullCode = systemFullCode;
	}
	public String getSystemFullName() {
		return systemFullName;
	}
	public void setSystemFullName(String systemFullName) {
		this.systemFullName = systemFullName;
	}
	public int getNodeLevel() {
		return nodeLevel;
	}
	public void setNodeLevel(int nodeLevel) {
		this.nodeLevel = nodeLevel;
	}
	public String getNodeKind() {
		return nodeKind;
	}
	public void setNodeKind(String nodeKind) {
		this.nodeKind = nodeKind;
	}
	public String getSortNo() {
		return sortNo;
	}
	public void setSortNo(String sortNo) {
		this.sortNo = sortNo;
	}
	public String getfParent() {
		return fParent;
	}
	public void setfParent(String fParent) {
		this.fParent = fParent;
	}
	public String getSystemKind() {
		return systemKind;
	}
	public void setSystemKind(String systemKind) {
		this.systemKind = systemKind;
	}
	public String getAbsoluteUrl() {
		return absoluteUrl;
	}
	public void setAbsoluteUrl(String absoluteUrl) {
		this.absoluteUrl = absoluteUrl;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getsDisplay() {
		return sDisplay;
	}
	public void setsDisplay(String sDisplay) {
		this.sDisplay = sDisplay;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

}

